package cn.ffcs.unm.cost.manager.impl;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import cn.ffcs.unm.cost.dao.CostDao;
import cn.ffcs.unm.cost.manager.CostManager;
import cn.ffcs.unm.cost.model.DeptCost;
import cn.ffcs.unm.cost.model.TaxGroup;
import cn.ffcs.unm.cost.model.TaxGroupMember;
import cn.ffcs.uom.common.vo.PageInfo;

@Service("costManager")
@Scope("prototype")
public class CostManagerImpl implements CostManager {

	@Resource
	private CostDao costDao;

	@Override
	public PageInfo queryPageInfoByDeptCost(DeptCost deptCost, int currentPage,
			int pageSize) {
		return costDao.queryPageInfoByDeptCost(deptCost, currentPage, pageSize);
	}

	@Override
	public PageInfo queryPageInfoByTaxGroup(TaxGroup taxGroup, int currentPage,
			int pageSize) {
		return costDao.queryPageInfoByTaxGroup(taxGroup, currentPage, pageSize);
	}

	@Override
	public PageInfo queryPageInfoByTaxGroupMember(TaxGroupMember taxGroupMember, int currentPage, int pageSize) {
		return costDao.queryPageInfoByTaxGroupMember(taxGroupMember, currentPage, pageSize);
	}

}
